import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/room/` + url, ...arg)

/**
 * 考场Api接口管理器
 *
 * @author lrw
 * @date  2025/10/04 09:47
 **/
export default {
	// 获取考场分页
	exmRoomPage(data) {
		return request('page', data, 'get')
	},
	// 提交考场表单 edit为true时为编辑，默认为新增
	exmRoomSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除考场
	exmRoomDelete(data) {
		return request('delete', data)
	},
	// 获取考场详情
	exmRoomDetail(data) {
		return request('detail', data, 'get')
	}
}
